package com.smart.job.executor.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.smart.common.utils.R;
import com.smart.domain.BatchSendEcpTaskDO;

@FeignClient(contextId = "ecpServiceClient",name = "cardc-ecp-service")
public interface EcpServiceClient {

	/**
	 * 电子券过期任务,查询范围是电子券过期时间加1天大于当前时间过期的电子券
	 */
	@RequestMapping(value = "/ecp/ecpTask/ecpExpired",method = RequestMethod.GET)
	R ecpExpired();
	/**
	 * 电子券过期任务,查询范围是当前日期0点之前过期的电子券
	 */
	@RequestMapping(value = "/ecp/ecpTask/ecpExpiredByDay",method = RequestMethod.GET)
	R ecpExpiredByDay();

	/**
	 * 优惠券过期下架任务
	 */
	@RequestMapping(value = "/ecp/ecpTask/cpUnder",method = RequestMethod.GET)
	R cpUnder();
	/**
	 * 执行批量派券任务
	 * @param batchSendEcpTaskDO
	 * @return
	 */
	@RequestMapping(value = "/ecp/ecpTask/batchSendEcp",method = RequestMethod.POST)
	R batchSendEcp(@RequestBody BatchSendEcpTaskDO batchSendEcpTaskDO);



}